package com.manager.devicemanager.service;

import com.manager.devicemanager.entity.DeviceInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.manager.devicemanager.entity.UserInfo;

import java.util.Collection;
import java.util.List;
import java.util.Stack;

/**
 * <p>
 * 设备表 服务类
 * </p>
 *
 * @author wpf
 * @since 2025-05-27
 */
public interface IDeviceInfoService extends IService<DeviceInfo> {

    /**
     * <p>
     * 批量insert,主键冲突时update
     * </p>
     *
     *
     * @param list
       * @author: wpf
       * @since: 2025-05-27
     */
    void batchInsertOnDuplicateKeyUpdate(Collection<DeviceInfo> list);
    
    /**
     * <p>
     * 批量insert,主键冲突时忽略
     * </p>
     *
     *
     * @param list
   * @author: wpf
   * @since: 2025-05-27
     */
    void batchInsertOnDuplicateKeyIgnore(Collection<DeviceInfo> list);


    List<UserInfo> getDeviceUserList(String deviceid);


    List<DeviceInfo> getDeviceListByType(String type);




}
